package cn.stylefeng.guns.modular.trailer.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author typ
 * @since 2020-11-24
 */
@TableName("trailer")
@Data
public class Trailer implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("poster")
    private String poster;

    @TableField("cover")
    private String cover;

    @TableField("trailer")
    private String trailer;

    /*
    分数
     */
    @TableField("score")
    private Double score;

    @TableField("prisedCounts")
    private Integer prisedCounts;

    /*
    基本信息
     */
    @TableField("baseicInfo")
    private String baseicInfo;

    /*
    原名
     */
    @TableField("originalName")
    private String originalName;

    /*
    上映时间
     */
    @TableField("releaseDate")
    private Date releaseDate;

    /*
    时长
     */
    @TableField("totalTime")
    private String totalTime;

    @TableField("plotDesc")
    private String plotDesc;

   //剧照
    @TableField(exist = false)
    private List<String> plotPics;

    public Trailer(String name, int id, String poster, String cover, String trailer, double score) {
        this.name = name;
        this.id = id;
        this.poster = poster;
        this.cover = cover;
        this.trailer = trailer;
        this.score = score;
    }

    public Trailer() {
    }

    @Override
    public String toString() {
        return "Trailer{" +
        "id=" + id +
        ", name=" + name +
        ", poster=" + poster +
        ", cover=" + cover +
        ", trailer=" + trailer +
        ", score=" + score +
        ", prisedCounts=" + prisedCounts +
        ", baseicInfo=" + baseicInfo +
        ", originalName=" + originalName +
        ", releaseDate=" + releaseDate +
        ", totalTime=" + totalTime +
        ", plotDesc=" + plotDesc +
        "}";
    }
}
